package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type AlibabaTmallSparepartsDetailsCreateRequest struct {
	/*
	   请求入参     */
	SparePartsDetailsSaveRequest *domain.AlibabaTmallSparepartsDetailsCreateSparePartsDetailsSaveRequest `json:"spare_parts_details_save_request,omitempty" required:"false" `
}

func (s *AlibabaTmallSparepartsDetailsCreateRequest) SetSparePartsDetailsSaveRequest(v domain.AlibabaTmallSparepartsDetailsCreateSparePartsDetailsSaveRequest) *AlibabaTmallSparepartsDetailsCreateRequest {
	s.SparePartsDetailsSaveRequest = &v
	return s
}

func (req *AlibabaTmallSparepartsDetailsCreateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.SparePartsDetailsSaveRequest != nil {
		paramMap["spare_parts_details_save_request"] = util.ConvertStruct(*req.SparePartsDetailsSaveRequest)
	}
	return paramMap
}

func (req *AlibabaTmallSparepartsDetailsCreateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
